<!DOCTYPE html>
<html>
<head>
    {*<script src="{asset('wap/spread/good/gt.js')}" async=""></script>*}
    <meta charset="UTF-8">
    <title>{$data.name}-官方正品店</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <link type="text/css" rel="stylesheet" href="{asset('wap/spread/good/base.css')}">
    <link type="text/css" rel="stylesheet" href="{asset('wap/spread/good/base.min.css')}">
    <link type="text/css" rel="stylesheet" href="{asset('wap/spread/good/bootstrap.css')}">
    <link type="text/css" rel="stylesheet" href="{asset('wap/spread/good/_.css')}">
    {*<link type="text/css" rel="stylesheet" href="{asset('wap/spread/good/_(1).css')}">*}
    <link type="text/css" rel="stylesheet" href="{asset('wap/spread/good/swiper.min.css')}">
    <link type="text/css" rel="stylesheet" href="{asset('wap/layer_mobile/need/layer.css')}">
    <script src="{asset('wap/layer_mobile/layer.js')}"></script>
    <script>
        var G = { };
        G.debug = false;
        G.af = false;
        var _6abc951c3a49a1152bc84a32afd72104 = "KRLAWYEUVF61TGFR5H4WNPU2V1MHPKG4LVLY1E6F";
        G.POST_HASH = _6abc951c3a49a1152bc84a32afd72104;
    </script>
    <script type="text/javascript">
        //<![CDATA[
        var tips; var theTop = 25/*这是默认高度*/; var old = theTop;
        function initFloatTips() {
            tips = document.getElementById('floatTips');
//            moveTips();
        };
        function moveTips() {
            var tt=50;
            if (window.innerHeight) {
                pos = window.pageYOffset
            }
            else if (document.documentElement && document.documentElement.scrollTop) {
                pos = document.documentElement.scrollTop
            }
            else if (document.body) {
                pos = document.body.scrollTop;
            }
            pos=pos-tips.offsetTop+theTop;
            pos=tips.offsetTop+pos/10;
            if (pos < theTop) pos = theTop;
            if (pos != old) {
                tips.style.top = pos+"px";
                tt=10;
            }
            old = pos;
            setTimeout(moveTips,tt);
        }
        //!]]>
    </script>
    <style type="text/css">
        div#floatTips{
            position:absolute;
            /*border:solid 1px #777;*/
            padding:2px;
            top:42px;
            right: 0px;
            width:90px;
            background:rgba(255, 255, 255, 0.5);
            color:black;
            z-index: 100;
            opacity: 1;/*这两句没法通过验证的。。。*/
            filter:alpha(opacity=50);/*这两句没法通过验证的。。。*/
        }
        .top-item-num{ position: fixed;top: 30px;left: 0px;padding: 4px 4px 4px 14px;background: #fff;font-size: 12px;opacity: .8;line-height: 18px;border-radius: 0px 16px 16px 0px;display: none;}
        @media screen and (max-width: 790px) {
            .top-item-num{ display: block;}
        }
        {if is_mobile_request()}
        .fixed-header-space{ height:30px;}
        {else}
        .fixed-header-space{ height:60px;}
        {/if}
    </style>
</head>

<body onload="initFloatTips()">
{*{if $host!='52tuiguang.91maixie.com'}*}
<div style="z-index:10000;width: 100%;text-align: center;background: #b3075c;" class="pos-f">
    <a class="_btn_scroll_buy cp" href="{route('WapSpreadHome')}"><img src="{asset('wap/spread/good/head.gif')}" style="width:100%;max-width:790px;">
    </a>
</div>
<div class="top-item-num" style="z-index:10000;">商品编号:{$data.goods_number}</div>
{*{/if}*}
<!--//左右固定漂浮-->
<div class="fixed-center">
    <div>
        <div class="fixed-header-space"></div>
        <div class="fixed-center-right ">
            <div>
                <a href="sms:13168831555" class="_btn_sms"><img  src="{asset('wap/static/index-phine.jpg')}" class="m20t m10b"></a><br>
                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3261203709&site=qq&menu=yes" class="_btn_pop_kf "><img  src="{asset('wap/static/qq.jpg')}"></a>
                <a href="javascript:;" class="_btn_scroll_more "><img src="{asset('wap/static/TB2mxRRXZIX61Bjy1zjXXb1GXXa-1627829680.png')}" class="m10t"></a>
                <a href="javascript:;" class="_btn_scroll_buy "><img src="{asset('wap/static/TB2FXCJX4Ab61BjSZFBXXc9pFXa-1627829680.gif')}" class="m10t"></a>
            </div>
            <div class="">
                <div class="m10t fixed-center-right-item-num">商品编号：{$data.goods_number}</div>
            </div>
        </div>
        <div class="fixed-center-left">
            <div class="">
            </div>
        </div>
        <div class="fixed-center-right-bottom ">
            <a style="display: none;" href="javascript:;" class="_btn_top undis"><img src="{asset('wap/spread/good/btn_top.gif')}" class="m10t cp"></a>
        </div>
    </div>
</div>
<div class="fixed-header-space"></div>
<div class="container item">
    <div class="swiper-container swiper-container-horizontal">
        <div class="swiper-wrapper">
            {foreach $data.PictureArr as $item}
            <div style="width: 790px;" class="swiper-slide swiper-slide-active">
                <img class="item-key-image lazy" width="1920" height="1080" data-original="{$item}">
            </div>
            {/foreach}
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination swiper-pagination-clickable swiper-pagination-bullets">
            <span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span>
            <span class="swiper-pagination-bullet"></span>
        </div>
    </div>

    <div class="item-price">
        {if in_array($host,$url) && in_array(1,$model)}
            {else}
        <div class="pricebar">
            <div class="subleft avil">
                <div class="price ">¥<strong>{$data.present_price}</strong></div>
                <div class="information">
                    <div class="oprice">¥<del>{$data.original_price}</del></div>
                    <div class="soldcount"><span>{$rand+15686}</span>件已售</div>
                </div>
            </div>
            <div class="countdown">
                <div class="txt">速来抢购</div>
                <div class="clockrun item-price-timer">

                    {literal}
                    <span class="num" id="J_TimeHour">{{h}}</span><span class="dot">:</span>
                    <span class="num" id="J_TimeMin">{{m}}</span><span class="dot">:</span>
                    <span class="num" id="J_TimeSec">{{s}}</span><span class="dot">:</span>
                    <span class="num" id="J_TimeWSec">{{ms}}</span>
                    {/literal}

                </div>
            </div>
        </div>
        {/if}
        <div class="item-info">
            <h1>{$data.name}</h1>
            <ul class="itemfeatures">
                <li>清爽 舒适 透气！！</li>
            </ul>
            <ul class="showtagnames">
                <li>货到付款</li>
                <li>七天退换</li>
                <li>先行赔付</li>
                <li>包邮</li>
            </ul>
        </div>
        {*{/if}*}
        {*{if !in_array($host,['666maixie.91maixie.com'])}*}
        {*{if count($buys)}*}
        {*<div class="item-detail">*}
            {*<div class="item-detail-content p20">*}
                {*<div class="order-notes" style="height: 120px; overflow: hidden;">*}
                    {*<ul style="margin-top: -324px;">*}
                        {*<ul>*}
                            {*{foreach $buys as $item}*}
                            {*<li><span class="_note">[最新提示]</span> <span class="_name"> {$item.content}</span> <span class="_i"> √ </span></li>*}
                            {*{/foreach}*}
                        {*</ul>*}
                    {*</ul>*}
                {*</div>*}
            {*</div>*}
        {*<div class="item-price-ul p10">*}
            {*<button type="button" class="btn-primary w100 _btn_scroll_buy">货到付款，立即抢购</button>*}
        {*</div>*}
    {*</div>*}
        {*{/if}*}
        {*{/if}*}

    <div class="item-detail-section">
        <div class="item-detail" id="QGMS">
            <div class="item-detail-title"> 抢购描述 </div>

            <div class="item-detail-content">
                {*{if $host!='tuiguang.91maixie.com' && $host!='tuiguang.megole.com'}*}
                <div class="tc p10t p10b fb f-s-1" style="padding: 10px; text-align: center;">
                    {*终于降价了 羊皮女鞋 牛皮女鞋 限量特卖！*}
                    {*<br>*}
                    <span style="color:#FF0000;">
                    <strong>全国包邮，官方正品 货到付款，先验货，再付款！</strong>
                    </span>
                    <br>
                    眼见为实， 不满意当场拒签 无需承担任何费用！
                    <br>
                    “真金不怕火炼” 只有好品质才敢先发货！！
                </div>
                {*{/if}*}
                {*{if $data.is_item == 0}*}
                {if in_array($host,$url) && in_array(4,$model)}
                {else}
                <div class="item-products tc">
                    <ul>
                        {foreach $goods as $key=>$item}
                            {*{if $key < 3}*}
                        {*<li style="width:100%"><a href="{route('WapSpreadGood',['id'=>$item.id])}" target="_blank"><img src="{$item.CoverUrl}&width=375&height=150"></a></li>*}
                            {*{else}*}
                                <li><a href="{route('WapSpreadGood',['id'=>$item.id])}" target="_blank"><img class="lazy" data-original="{$item.cover_url}" src=""></a></li>
                            {*{/if}*}
                        {/foreach}
                    </ul>
                </div>
                {/if}
                {*{/if}*}
            </div>
        </div>
        <div class="goods_detail">
            {$data.details}
        </div>
        {if in_array($host,$url) && in_array(2,$model)}
        {else}
        <div class="item-detail">
            {if count($eva)}
            <div class="item-detail-title">
                客人评价
            </div>
            <div class="item-detail-content p10">
                <div class="comments" style="overflow: hidden;">
                    <ul style="margin-top: -343px;">
                        {foreach $eva as $item}
                        <li>
                            <div>
                                <span class="comments-date">{date('Y-m-d',strtotime($item.evaluate_at))}</span>
                                <span class="comments-date">{$item.goods_info}</span>
                                <span class="comments-dealcode m10l">(订单号：{substr_replace($item.order_id,'***',8,6)})</span>
                            </div>
                            <div class="comments-content">
                                {$item.content}
                            </div>
                        </li>
                        {/foreach}
                    </ul>
                </div>
            </div>
                <div class="item-detail-content">
                    <form id="form_comments"  action="" method="post" >
                        <div class="form _a5 _undis comments-form" style="background:#fff;">
                            <div class="form-section">
                                <div class="form-left ">评论建议</div>
                                <div class="form-right ">
                                    <textarea name="content" class="" rows="2" id="content"></textarea>
                                </div>
                            </div>
                            <div class="form-section">
                                <div class="form-left">电话号码</div>
                                <div class="form-right ">
                                    <input maxlength="30" name="dealcode" type="text" >
                                </div>
                            </div>
                            <div class="form-section m5t m10b">
                                <div class="form-left"> </div>
                                <div class="form-right">
                                    <button type="button" class="btn-default  wa p20l p20r" style="min-width:160px;"><img src="{asset('wap/static/comment.png')}">发布评论</button>
                                </div>
                            </div>
                        </div>
                        <div class="comments-form-result undis m20">
                            <div class="_title">发布成功！</div>
                            <div class="m510t">非常感谢您的评论与建议，我们会不断改进商品与服务的质量<br>
                                为广大顾客提供更好的购物体验。</div>
                        </div>
                    </form>
                </div>
            {/if}
        </div>
        {/if}
        <div class="item-detail">
            <div class="item-detail-title">
                <a id="a_order"></a>在线下单
            </div>
            <div class="item-detail-content">
                <form id="form_order">
                    <div class="form">
                        {foreach $attributes as $key=>$item}
                        <div class="form-section clearfix">
                            <div class="form-left">{$item[1]}</div>
                            <div class="form-right">
                                <div id="{$item[0]}">
                                    {foreach $item as $k=>$row}
                                        {if $k!=0 && $k!=1}
                                    <label class="tc vat" title="{$row}"><input class=" undis" value="{$row}" name="{$item[0]}" type="radio">{$row}</label>
                                        {/if}
                                    {/foreach}
                                    {if $key!=0}
                                    <label class=" _dis vat note-a"><span class="_title">提示：标准尺码 请选平时穿的尺码</span></label>
                                    {/if}
                                </div>
                            </div>
                        </div>
                        {/foreach}
                        <div class="form-section clearfix">
                            <div class="form-left">数量</div>
                            <div class="form-right">
                                <div class="inputs-box">
                                    <button type="button" class="btn-text btn-reduce" id="jian">减一双</button>
                                    <input pattern="[0-9]" onafterpaste="this.value=this.value.replace(/D/g,'')" class="tc fb" name="quantity" value="1" onclick="this.select()" maxlength="2"
                                           style="width:60px;" id="number" type="tel">
                                    <button type="button" class="btn-text btn-add" id="jia">加一双</button>
                                </div>
                            </div>
                        </div>
                        <div class="form-section clearfix">
                            <div class="form-left">姓名</div>
                            <div class="form-right">
                                <input name="name" placeholder="收货人真实姓名" id="real_name" type="text">
                            </div>
                        </div>
                        <div class="form-section clearfix">
                            <div class="form-left">手机</div>
                            <div class="form-right">
                                <input pattern="[0-9]" onafterpaste="this.value=this.value.replace(/D/g,'')" maxlength="11" name="mobile" placeholder="正确的手机号码" id="mobile" type="tel">
                            </div>
                        </div>
                        <div class="form-section clearfix">
                            <div class="form-left">地区</div>
                            <div class="form-right">
                                <div class="address">
                                    <select name="province_id" id="province">
                                        <option selected="selected" value="">选省份</option>
                                        {foreach $province as $item}
                                            <option value="{$item.id}">{$item.name}</option>
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="address" >
                                    <select name="city_id" id="town" >
                                        <option selected="selected" value="">选城市</option>
                                    </select>
                                </div>
                                <div class="address" >
                                    <select name="area_id" id="area">
                                        <option selected="selected" value="">选地区</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="form-section clearfix">
                            <div class="form-left">地址</div>
                            <div class="form-right">
                                <input name="address" placeholder="正确的详细地址，方便送货上门" id="to_address" type="text">
                            </div>
                        </div>
                        <div class="form-section clearfix">
                            <div class="form-left">付款</div>
                            <div class="form-right">
                                <label class="_on"><input class="undis" checked="checked" type="radio">货到付款</label>
                                <span class="note-a"><span class="_title">提示：</span>货到付款在家等快递公司送货上门，先验货后付款</span>
                            </div>
                        </div>
                        <div class="form-section clearfix">
                            <div class="form-left">原价</div>
                            <div class="form-right">
                                <del class="form-fee-total-org fb">¥{$data.original_price}</del>

                                <span class="m20l">共节省&nbsp;<span class="form-fee-total-save fb">¥{$data.original_price-$data.present_price}</span></span>
                            </div>
                        </div>
                        <div class="form-section clearfix">
                            <div class="form-left">现价</div>
                            <div class="form-right">
                                <span class="form-fee-total" id="all_money">¥{$data.present_price}</span>
                                {*<span class="m10l form-fee-total-text">限时促销</span>*}
                            </div>
                        </div>
                        <div class="form-section m10t">
                            <div class="form-left">留言</div>
                            <div class="form-right">
                                <textarea name="leave_word" id="leave_word"></textarea>
                            </div>
                        </div>
                        <div class="form-section">
                            <div class="form-left">&nbsp;</div>
                            <div class="form-right">
                                <button type="button" class="" style="width:100%;" data-text="" id="postdata"><img src="{asset('wap/spread/good/done.png')}" class="sbumit_img">立即提交订单</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        {if count($buys)}
            {if in_array($host,$url) && in_array(3,$model)}
            {else}
            <div class="item-detail">
                <div class="item-detail-content p20">
                    <div class="order-notes" style="height: 120px; overflow: hidden;">
                        <ul style="margin-top: -324px;">
                            <ul>
                                {foreach $buys as $item}
                                    <li><span class="_note">[最新提示]</span> <span class="_name"> {$item.content}</span> <span class="_i"> √ </span></li>
                                {/foreach}
                            </ul>
                        </ul>
                    </div>
                </div>
                <div class="item-price-ul p10">
                    <button type="button" class="btn-primary w100 _btn_scroll_buy">货到付款，立即抢购</button>
                </div>
            </div>
                {/if}
        {/if}
    </div>

    <div class="container m20t">
        <div class="footer tc p10 " style="line-height:20px;">
            <img src="{asset('wap/spread/good/certification.png')}" class="_certification">
            <br>
            {if $host!='tuiguang.91maixie.com'}
            真皮女鞋 官方正品店<br>
            {/if}
            {if $host=='666maixie.91maixie.com'}福建省莫蕾蔻蕾贸易有限公司{/if}
            {*{if $host=='tuiguang.megole.com'}福建省莫蕾蔻蕾贸易有限公司{/if}*}
            {if $host=='tuiguang.91maixie.com'}福建省莫蕾蔻蕾贸易有限公司{/if}
            {*{if $host=='xienian.megole.com'}北京昊天骏业商贸有限公司{/if}*}
            {if $host=='555maixei.91maixie.com'}福建省莫蕾蔻蕾贸易有限公司{/if}
            {if $host=='55tuiguang.91maixie.com'}莆田市城厢区万博贸易服务有限公司{/if}
            {*{if $host=='54tuiguang.91maixie.com'}福建省通越服饰有限公司{/if}*}
            {if $host=='53tuiguang.91maixie.com'}福建省莫蕾蔻蕾贸易有限公司{/if}
            {if $host=='52tuiguang.91maixie.com'}福建省莫蕾蔻蕾贸易有限公司{/if}
            {if $host=='51tuiguang.91maixie.com'}福建省莫蕾蔻蕾贸易有限公司{/if}
            {if $host=='58tuiguang.91maixie.com'}东莞市帛韵服饰有限公司{/if}
            {if $host=='56tuiguang.91maixie.com'}新余市悦尚商贸有限公司{/if}
            {if $host=='57tuiguang.91maixie.com'}深圳市莱尔妮丝服饰有限公司{/if}
            {if $host=='nvx.tmall.moogoing.com'}成都艾薇娅商贸有限公司{/if}
            {if $host=='nx.tmall.moogoing.com'}成都蓝妹妹贸易有限公司{/if}
            {if $host=='nxie.tmall.moogoing.com'}成都美丽多商贸有限公司{/if}
            {if $host=='mainx.tmall.moogoing.com'}成都四季冰月鞋业有限公司{/if}
            {if $host=='nvxie.tmall.moogoing.com'}成都欲源商贸有限公司{/if}
            {*{if $host=='nx.tmall.lindaying.com'}广州市春薇贸易有限公司{/if}*}
            {if $host=='snvx.tmall.lindaying.com'}广州逸祺美贸易有限公司{/if}
            {if $host=='snxie.tmall.lindaying.com'}广州浩立贸易有限公司{/if}
            {*{if $host=='nx2.lindaying.com'}上海旷远投资管理有限公司{/if}*}
            <br>
            <span class="c-note">官方正品 / 货到付款 / 7天无理由退货</span>
        </div>
        <div class="footer-space">&nbsp;</div>
    </div>
</div>

<!--遮罩-->
<div class="popmask"></div>
<!--购物车弹出-->
<div class="select-standard" id="cart-standard">
    <i class="pro-close"></i>

    <div class="cart-slide-section">
        <ul class="goods-list">
            {*<li class="goods-item clearfix">*}
            {*<div class="cart-check">*}
            {*<input class="input-check" type="checkbox" name="checks">*}
            {*<span class="m-ckbox"></span>*}
            {*</div>*}
            {*<div class="cart-img">*}
            {*<a href="javascript:;">*}
            {*<img src="test_files/TB2wI3ZpXXXXXa3XFXXXXXXXXXX_2076428204.jpg">*}
            {*</a>*}
            {*</div>*}
            {*<div class="cart-info">*}
            {*<p class="info-p"><a>呵呵呵呵呵额呵呵呵呵呵呵呵呵呵</a></p>*}
            {*<span class="price">￥<em class="num">100.00</em></span>*}

            {*<a class="info-del"><i class="icon"></i></a>*}
            {*</div>*}
            {*</li>*}
        </ul>
    </div>
    <div class="bottom-bar">
        <dl class="cart-total-dl clearfix">
            <dt>
            <div class="cart-check">
                <input class="check-all" type="checkbox" name="check-all">
                <span class="m-ckbox"></span>
            </div>
            </dt>
            <dd class="sm2">
                <a class="total-btn">
                    结算<em></em>
                </a>
            </dd>
            <dd class="sm1">
                合计:<em class="num" id="all_money">¥0</em>
            </dd>
        </dl>
    </div>
</div>
<!--底部固定-->
<div class="fixed-footer _item">
    <ul class="">
        <li class="_l">
            {*<a href="tel:13168831555"><img src="{asset('wap/spread/good/home.png')}">电话订购</a>*}
            <a href="{route('WapSpreadHome')}"><img src="{asset('wap/spread/good/home.png')}">更多款式</a>
        </li>
        <li class="_m">
            <a class="fixed-footer-buy _btn_scroll_buy" href="javascript:;"><img src="{asset('wap/spread/good/buy.png')}">立即购买</a>
        </li>
        <li class="_r">
            {*<a href="sms:13168831555" class="_btn_pop_kf"><img src="{asset('wap/spread/good/msg.png')}">短信订购</a>*}
            <a href="tel:13168831555"><img src="{asset('wap/spread/good/msg.png')}">电话订购</a>
        </li>
    </ul>
</div>
<!-- 悬浮 -->
{*<div id="floatTips">*}
    {*编号：{$data.goods_number}*}
{*</div>*}
</body>
<script src="{asset('wap/spread/good/jquery.js')}"></script>
<script src="{asset('wap/spread/good/common.js')}"></script>
<script src="{asset('wap/spread/good/G.js')}"></script>
<script src="{asset('wap/spread/good/init.js')}"></script>
<script src="{asset('wap/spread/good/_.js')}"></script>
<script src="{asset('wap/spread/good/item.js')}"></script>
<script src="{asset('wap/spread/good/swiper.min.js')}"></script>
<script src="{asset('wap/spread/good/marqueen.js')}"></script>
{*<script src="{asset('wap/spread/good/area.js')}"></script>*}
{*<script src="{asset('wap/spread/good/addCart.js')}"></script>*}
<script src="{asset('wap/spread/good/time.lesser.js')}"></script>
<script src="{asset('wap/lazyload/jquery.lazyload.js')}"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#province').change(function () {
            var provinceID = $(this).children('option:selected').val(); //这就是selected的值
            if (provinceID > 0) {
                tmp = '<option value="">市/地区<\/option>';
                $.ajax({
                    type: "GET",
                    url: "{route('WapGlobalLocationData')}",
                    data: "pid=" + provinceID,
                    success: function (result) {
                        $.each(result['data'], function (key, val) {
                            tmp += '<option value="' + val.id + '" >' + val.name + '<\/option>';
                        });
                        $('#town').html(tmp).show();
//                        $('#area').html('').hide();
                        tmp = '';
                    }
                });
            } else {
//                $('#town').html('').hide();
//                $('#area').html('').hide();
            }
        });

        $('#town').change(function () {
            var townID = $(this).children('option:selected').val(); //这就是selected的值
            if (townID > 0) {
                tmp = '<option value="0">县/市<\/option>';
                $.ajax({
                    type: "GET",
                    url: "{route('WapGlobalLocationData')}",
                    data: "pid=" + townID,
                    success: function (result) {
                        $.each(result['data'], function (key, val) {
                            tmp += '<option value="' + val.id + '" >' + val.name + '<\/option>';
                        });
                        $('#area').html(tmp).show();
                        tmp = '';
                    }
                });
            } else {
//                $('#area').html('').hide();
            }
        });

        $('#postdata').click(function () {
            var size = $('#size').find('label._on').attr('title');
            var color = $('#color').find('label._on').attr('title');
            var money = $('#all_money').html().replace('¥', '');
            var goods_name = '{$data.name}';
            var mobile = $('#mobile').val();
            var real_name = $('#real_name').val();
            var number = $('#number').val();
            var address = $('#to_address').val();
            var province = $('#province option:selected').val();
            var town = $('#town option:selected').val();
            var area = $('#area option:selected').val();
            var leave_word = $('#leave_word').val();
            if(!size){
                alert('请选择尺寸');
                return false;
            }
            if(!color){
                alert('请选择颜色');
                return false;
            }
            if(!mobile){
                alert('请填写手机号');
                return false;
            }
            if(!address){
                alert('请填写地址');
                return false;
            }
            $(this).attr("disabled", true);
            $.ajax({
                type: 'POST',
                url: '{route('WapSpreadOrderSave')}',
                data: 'goods_id={$data.id}&mobile=' + mobile + '&real_name=' + real_name + '&number=' + number + '&address=' + address + '&province_id=' + province + '&city_id=' + town + '&area_id=' + area + '&size=' + size + '&color='+ color + '&money=' + money + '&goods_name=' + goods_name + '&leave_word=' + leave_word + '&goods_id={$get.id}',
                dataType: 'json',
                success: function (json) {
                    if (json.status == 1) {
                        var gdt_tracker = gdt_tracker || [];
                        gdt_tracker.push(["set_account_id", "5461205"]);
                        gdt_tracker.push(["add_action", "TRACK_CONVERSION" , "30161"]);
                        gdt_tracker.push(["send"]);
                        layer.open({
                            content:'恭喜!您的订单提交成功!',
                            btn:'确定',
                            yes:function(index){
                                window.location.href = '{route('WapSpreadResult')}?order_id='+json.order_id;
                            }
                        });
                    } else {
                        layer.open({
                            content:json.message,
                            btn:'确定',
                        });
//                        alert(json.message);
                    }
                }
            });
        });
    });
    $(".btn-default").click(function(){
        var content = $("#content").val();
        var dealcode = $("input[name='dealcode']").val();
        if(!content){
            layer.open({
                content:'请填写评论',
                btn:'确定',
            });
        }
        if(!dealcode){
            layer.open({
                content:'请填写手机号',
                btn:'确定',
            });
        }
        $('.comments-form-result').show();
    })
</script>
    <script type="text/javascript">
        var api = eval('({ "timeLesser":"{date('Y-m-d H:i:s',time()+rand(10000,99999))}" })');
    </script>
<!-- Initialize Swiper -->
<script type="text/javascript">
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        loop:false,
        grabCursor: true,
        paginationClickable: true,
        autoplay: 3000
    });
    $(function() {
        $("img.lazy").lazyload();
    });
</script>
<script type="text/javascript">
//console.log(gdt_tracker);
    (function(){
        var doc=document, h=doc.getElementsByTagName('head')[0], s=doc.createElement('script');
//        console.log(h);
//        console.log(s);
        s.async=true;
        s.src="//qzs.qq.com/qzone/biz/res/gt.js";
        h && h.insertBefore(s, h.firstChild)
    })();
</script>
{*<script type="text/javascript" src="http://kf9.kuaishang.cn/bs/ks.j?cI=509356&fI=66247" charset="utf-8"></script><div style="display:none;"><a href=" ">在线客服系统</a ></div>*}
</html>